//
//  GPConversationItem.h
//  GuaPi
//
//  Created by 陈华 on 2017/6/24.
//  Copyright © 2017年 Joanlove. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GPConversationItem : NSObject

/** @brief 会话对象 */
@property (strong, nonatomic, readonly) EMConversation *conversation;
/** @brief 会话的标题(主要用户UI显示) */
@property (strong, nonatomic) NSString *title;
/** @brief conversationId的头像url */
@property (strong, nonatomic) NSString *avatarURLPath;
/** @brief conversationId的头像 */
@property (strong, nonatomic) UIImage *avatarImage;
/** @brief 最后一条消息的可显示内容 */
@property (copy, nonatomic, readonly) NSString *lastMsgContent;
/** @brief 最后一条消息可显示的时间 */
@property (copy, nonatomic, readonly) NSString *lastMsgDisplayTime;
/** @brief 当前会话用户的性别 */
@property (assign, nonatomic) NSInteger coversationUserSex;
/** @brief 当前会话用户的年龄 */
@property (assign, nonatomic) NSUInteger coversationUserAge;
/** @brief 未读消息数*/
@property(nonatomic,assign) NSUInteger unreadCount;

/**用户ID--uid*/
@property(nonatomic,copy) NSString *uid;





/*!
 @method
 @brief 初始化会话对象模型
 @param conversation    会话对象
 @return 会话对象模型
 */
- (instancetype)initWithConversation:(EMConversation *)conversation;

@end
